import request from '@/utils/request'
export function getInfo(token) {
  return request({
    url: '/auth/getLoginInfo',
    method: 'get',
    params: { token }
  })
}

export function logout(token) {
  return request({
    url: '/auth/logout',
    method: 'get',
    params: { token }
  })
}

const Login = params => request({
  url: '/Auth/Login',
  method: 'post',
  data: params,
})

const GetMenu = params => request({
  url: '/Menu/GetMenu',
  method: 'get',
  data: params,
})
export {
  Login,
  GetMenu
}